const routers = [
    {
        path: '/',
        meta: {
            title: '登录页'
        },
        component: (resolve) => require(['../components/Login'], resolve)
    },
    {
        path: '/index',
        meta: {
            title: '后台管理系统'
        },
        component: (resolve) => require(['../components/Index'], resolve),
        children:[
            {
                path: 'qr',
                meta:{
                    title: '二维码管理'
                },
                component: (resolve) => require(['../views/botc/QrIndex'], resolve)
            },
            {
                path: 'menus',
                meta:{
                    title: '菜单管理'
                },
                component: (resolve) => require(['../views/syssetting/MenusIndex'], resolve)
            },
            {
                path: 'g',
                meta:{
                    title: '用户管理'
                },
                component: (resolve) => require(['../views/g/gindex'], resolve)
            }
        ]
    },
    {
        path: '/index/icons',
        meta: {
            title: '后台管理系统'
        },
        component: (resolve) => require(['../components/MenuManager'], resolve)
    }
];

export default routers;


